package com.github.thinwonton.showcase.springboot.basic.anno.enablexx.enableasync;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
class AsyncTaskService {
    @Async
    public void executeAsyncTask1(Integer taskId) {
        System.out.println("executeAsyncTask1：执行异步任务：" + taskId);
    }

    @Async
    public void executeAsyncTask2(Integer taskId) {
        System.out.println("executeAsyncTask2：执行异步任务：" + taskId);
    }
}
